﻿using Admin.NET.Application.Entity;
using Admin.NET.Core;
using System.ComponentModel.DataAnnotations;
namespace Admin.NET.Application;

/// <summary>
/// 组态设计基础输入参数
/// </summary>
    public class BoardDisplayDesignBaseInput
    {
        /// <summary>
        /// 设计编号
        /// </summary>
        public virtual string DesignNo { get; set; }
        
        /// <summary>
        /// 组态名称
        /// </summary>
        public virtual string Name { get; set; }
        
        /// <summary>
        /// 路由清单
        /// </summary>
        public virtual string? RouteNos { get; set; }
        
        /// <summary>
        /// 路径
        /// </summary>
        public virtual string? Path { get; set; }
        
        /// <summary>
        /// 创建时间
        /// </summary>
        public virtual DateTime? CreateTime { get; set; }
        
        /// <summary>
        /// 更新时间
        /// </summary>
        public virtual DateTime? UpdateTime { get; set; }
        
        /// <summary>
        /// 创建者Id
        /// </summary>
        public virtual long? CreateUserId { get; set; }
        
        /// <summary>
        /// 创建者姓名
        /// </summary>
        public virtual string? CreateUserName { get; set; }
        
        /// <summary>
        /// 修改者Id
        /// </summary>
        public virtual long? UpdateUserId { get; set; }
        
        /// <summary>
        /// 修改者姓名
        /// </summary>
        public virtual string? UpdateUserName { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        public virtual bool IsDelete { get; set; }

        /// <summary>
        /// 路径表
        /// </summary>
        public virtual List<BoardDisplayDesignDetail> ExtDetail { get; set; }
}

/// <summary>
/// 组态设计分页查询输入参数
/// </summary>
    public class BoardDisplayDesignInput : BasePageInput
    {
        /// <summary>
        /// 关键字查询
        /// </summary>
        public string? SearchKey { get; set; }

        /// <summary>
        /// 设计编号
        /// </summary>
        public string? DesignNo { get; set; }
        
        /// <summary>
        /// 组态名称
        /// </summary>
        public string? Name { get; set; }
        
    }

    /// <summary>
    /// 组态设计增加输入参数
    /// </summary>
    public class AddBoardDisplayDesignInput : BoardDisplayDesignBaseInput
    {
        /// <summary>
        /// 设计编号
        /// </summary>
        [Required(ErrorMessage = "设计编号不能为空")]
        public override string DesignNo { get; set; }
        
        /// <summary>
        /// 组态名称
        /// </summary>
        [Required(ErrorMessage = "组态名称不能为空")]
        public override string Name { get; set; }
        
        /// <summary>
        /// 软删除
        /// </summary>
        [Required(ErrorMessage = "软删除不能为空")]
        public override bool IsDelete { get; set; }

    }

    /// <summary>
    /// 组态设计删除输入参数
    /// </summary>
    public class DeleteBoardDisplayDesignInput : BaseIdInput
    {
    }

    /// <summary>
    /// 组态设计更新输入参数
    /// </summary>
    public class UpdateBoardDisplayDesignInput : BoardDisplayDesignBaseInput
    {
        /// <summary>
        /// 主键Id
        /// </summary>
        [Required(ErrorMessage = "主键Id不能为空")]
        public long Id { get; set; }
        
    }

    /// <summary>
    /// 组态设计主键查询输入参数
    /// </summary>
    public class QueryByIdBoardDisplayDesignInput : DeleteBoardDisplayDesignInput
    {

    }
